package com.dhcc.cdc.sys.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.dhcc.cdc.sys.entity.CdcDataEntity;
import com.dhcc.core.framework.base.service.IBaseService;
import com.dhcc.core.framework.result.node.ZTreeNode;

import java.util.List;
import java.util.Map;

/**
 * 院区数据、科室数据、患者数据、检验数据等表数据服务层接口
 * 
 * @ClassName: ICdcDataService
 * @Description: TODO
 * @author jumper
 * @date 2021-03-31 17:43:57
 */
public interface ICdcDataService  extends IBaseService<CdcDataEntity> {
	
    List<CdcDataEntity> page(Page<CdcDataEntity> page,Map<String, Object> map);
    List<CdcDataEntity> list(Map<String, Object> map);

    List<ZTreeNode> tree(String dataDesc,Long dataTypeId);
    List<ZTreeNode> tree(String dataDesc,String dataTypeCode);

    /**
     * 查询包含字典分类和字典项
     * @param dataDesc
     * @param dataTypeCode
     * @return
     */
    List<ZTreeNode> treeAll(String dataDesc, String dataTypeCode);

    CdcDataEntity selectByCode(String code);
}
